<?php
            $this->headTitle($this->title);
             $this->headScript()->appendFile(Zend_Registry::get('static_path').'js/users.js');
            $this->headLink()->appendStylesheet(Zend_Registry::get('static_path').'css/user.css');
            $this->layout()->setLayout('userlayout');
?>
<div class="nav"><a href="<?php echo $this->url(array( 'controller' => 'admin', 'action'     => 'index'),'default', true) ?>" class="navlink">Control Panel</a><img src="../images/arrow.gif" class="arrow"/> Add Documents</div>
<div id="userForm">
    <ul class="tabs">
        <li  class="active"><a href="<?php echo $this->url(array( 'controller' => 'docs', 'action'     => 'add'),'default', true) ?>">Add Documents</a></li>
         <li ><a href="<?php echo $this->url(array( 'controller' => 'docs', 'action'     => 'edit'),'default', true) ?>">Edit Documents</a></li>
    </ul>
      <div id="form-container">
        <form  class="form" name="docForm" method="post" enctype="multipart/form-data" action="<?php echo $this->url(array( 'controller' => 'docs', 'action'     => 'add'),'default', true) ?>">
             <input type="hidden" name="action" value="A"/>
             <table class="dataTable">
                 <tbody>
                      <tr><td colspan="2" align="center"> <?php echo $this->message  ?></td></tr>
                     <tr>
                        <td width="20%"><label>Document Name:<img src="../images/redStar.gif"/></label></td>
                        <td> <input type="text" name="docName" size="75"  id="docName" maxlength="250">&nbsp;&nbsp;&nbsp;<span id="docError" class="error"></span></td>
                     </tr>
                      <tr>
                        <td width="20%"><label>File:<img src="../images/redStar.gif"/></label></td>
                        <td> <input type="file" name="fileName"  id="fileName" >&nbsp;&nbsp;&nbsp;<span id="fileError" class="error"></span></td>
                     </tr>
                      <tr>
                        <td width="20%"><label>Category:</label></td>
                        <td> <input type="text" name="category"  id="category" ></td>
                     </tr>
                     <tr>
                         <td colspan="2" align="center">
                             <input type="submit" value="Submit"/>
                         </td>
                     </tr>
                 </tbody>
             </table>
             <img src="../images/redStar.gif"/><font color="red" size="0.2em"> <i>Document size cannot be more than 5MB</i></font>
        </form>
      </div>
</div>
